package com.zzs.esp.dao;

import com.zzs.esp.entity.Role;
import com.zzs.esp.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author ZechariahZheng
 * @Date 2021/1/26 10:33
 * @Version 1.0
 * @description
 */
@Mapper
@Component
public interface UserMapperDao {

    public User loadUserByUsername(String userName);

    public List<Role> getUserRolesByUid(Integer id);

}
